package abstract1;

public class HorzLine extends  AbstLine{

    HorzLine(int length){
        super(length);
    }
    public void draw(){
        for (int i = 0; i <getLength(); i++) {
            System.out.print("-");
        }
        System.out.println();
    }
    public String toString(){
        return "HorzLine(length:"+getLength()+")";
    }


}